package com.eeepay.eeepay_v2.adapter;

import android.content.Context;

import com.eeepay.eeepay_v2.R;
import com.eeepay.v2_library.adapter.ABBaseAdapter;
import com.eeepay.v2_library.adapter.ABViewHolder;

import cn.eeepay.api.grpc.nano.AppInfo2Proto;

/**
 * Created by Administrator on 2017/1/5.
 */
public class QRCodeAdapter extends ABBaseAdapter<AppInfo2Proto.AppInfo2> {

    public QRCodeAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_listview_qr_code;
    }

    @Override
    public void convert(ABViewHolder holder, AppInfo2Proto.AppInfo2 model) {
        holder.setText(R.id.tv_qr_name, model.appName);
    }
}
